﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Basicas;

namespace ProjetoJornada
{
    public partial class Master : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string nome = Session["JornadaNome"] as string;

            if (nome != null)
            {
                this.lblTituloJornada.Text = nome;
            }

            if (Session["Jornada"] != null)
            {
                this.liInstrutor.Visible = true;
                this.liMatricula.Visible = true;
                this.liRelatorio.Visible = true;
                this.liTurma.Visible = true;
                this.liInstrutor.Visible = true;
                this.liAluno.Visible = true;
            }
            else
            {                
                this.liMatricula.Visible = false;
                this.liRelatorio.Visible = false;
                this.liTurma.Visible = false;
                this.liAluno.Visible = false;
            }
        }
    }
}
